<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>123</title>
	<meta name="keywords" content="qweqwe"/>     
    <meta name="description" content="rewrewr"/>
</head>
<body>
	123
	<a href="javascript:;" id="asd">asd</a>
</body>
<script type="text/javascript" src="__STATIC__plug/layui/layui.js"></script>
<script type="text/javascript">
	layui.use(['jquery', 'layer'], function() {
		var $ = layui.jquery;

		$("#asd").on('click',function(){
			$.ajax({
	            url:"{:url('api/Test/index')}",
	            type:"POST",
	            dataType:'json',
	            success:function(res){
	                console.log(res)
	            }
	        });
		})
	})
</script>
</html>